package com.mypackage {

	import flash.text.TextField;
	import flash.display.Sprite;
	/**
	 * @author Jorge Hernandez
	 */
	public class Frontpage extends Sprite {
		
		
		// PROPERTIES
		
		// Create the variable public so Acto can access it and inject properties.
		public var mainTextField:TextField;
		
		
		// PUBLIC METHODS
		
		// Acto calls automatically to the init method when displaying the page.
		public function init():void {
			
			// Acto will initialize the mainTextField variable if it is empty, 
			// and inject the text property.
			
			addChild(mainTextField);
			
			// We could also have set this properties in the configuration...
			// Just keeping it minimalistic.
			mainTextField.x = 35;
			mainTextField.y = 80;
			
		}
		
		
	}
	
}